<template>
  <el-row type="flex" align="middle" style="height: 40px; width: 100%">
    <el-col>
      <span>{{ treeNode.name }}</span>
    </el-col>
    <el-col type="flex">
      <el-row type="flex" justify="end">
        <span>{{ treeNode.manager }}</span>
        <el-dropdown>
          <span class="el-dropdown-link">
            操作<i class="el-icon-arrow-down el-icon--right" />
          </span>
          <el-dropdown-menu slot="dropdown">
            <slot />
          </el-dropdown-menu>
          <!-- <el-dropdown-menu slot="dropdown">
            <el-dropdown-item>添加节点</el-dropdown-item>
            <el-dropdown-item v-if="!isRoot">删除节点</el-dropdown-item>
            <el-dropdown-item v-if="!isRoot">编辑节点</el-dropdown-item>
          </el-dropdown-menu> -->
        </el-dropdown>
      </el-row>
    </el-col>
  </el-row>
</template>
<script>
export default {
  name: '',
  components: {},
  props: {
    treeNode: {
      type: Object,
      required: true
    },
    isRoot: {
      type: Boolean,
      default: false
    }
  },
  data() {
    return {}
  },
  computed: {},
  watch: {},
  created() {},
  methods: {}
}
</script>

<style lang="scss" scoped>
.el-dropdown-link {
  margin-left: 10px;
}
</style>
